package com.lx.zxs.mapper;
import com.lx.zxs.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {
 
    User Sel(int id);

    Map findUserByUserName(String username);

    List<Map> getChatData(String id1, String id2);

    List<Map> getLinkMan(int id);

    void addChatData(Integer uid, Integer lid, Integer direction, Integer type, String content, String ctime, String linkName,String uuid);

    Map getChatDataByUUID(String uuid);

    void updateContactsStatus(int st,String uuid);

    User getUserByNameAndPass(@Param("username") String username, @Param("pass") String pass);

    List<Map> getWEiDUMessage(int id);

    void updateUserAvatar(Integer id, String absolutePath);


    void updateUser(Integer id, String collage, String major, String email, String phone);
    void addUser(Integer id, String realName,String username,String password,String birthdate,String college,String major,String email,String phone);

    void updateTime(Integer id);
}